package com.dyxy.tms.model;

import java.util.List;
import java.util.Map;

import com.dyxy.tms.App;
import com.dyxy.tms.R;
import com.dyxy.tms.views.CircleImageView;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Target;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.SimpleAdapter;
import android.widget.TextView;

public class MyAdapter {

	private SimpleAdapter simpleAdapter;

	// public SimpleAdapter iconSimpleAdapter(Context context, List<Map<String,
	// Object>> list, String[] from, int[] to) {
	// creatIconSimpleAdapter(context, list, from, to);
	// return simpleAdapter;
	// }
	//
	// private void creatIconSimpleAdapter(Context context, List<Map<String,
	// Object>> list, String[] from, int[] to) {
	// simpleAdapter = new SimpleAdapter(context, list,
	// R.layout.item_index_gridview, from, to);
	// }
	

	public SimpleAdapter courseSimpleAdapter(Context context, List<Map<String, Object>> list, String[] from, int[] to) {
		creatcourseSimpleAdapter(context, list, from, to);
		return simpleAdapter;
	}

	private void creatcourseSimpleAdapter(Context context, List<Map<String, Object>> list, String[] from, int[] to) {
		simpleAdapter = new SimpleAdapter(context, list, R.layout.item_index_lv, from, to);
	}

}
